-- GENERATED SPELL FOR [Razzashi Adder] --


function spell0_11372(pUnit, Event) --@Exploit Weakness,n/a--
pUnit:FullCastSpellOnTarget(24016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11372', 526, 1)
end

function spell1_11372(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_11372', 612, 1)
end

function spell2_11372(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(24011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11372', 12000, 1)
end

function Sorts_11372(pUnit, Event)
local choix_sorts_11372 = math.random(0, 2)
if choix_sorts_11372 == 0 then
pUnit:RegisterEvent('spell0_11372', 1, 1)
end
if choix_sorts_11372 == 1 then
pUnit:RegisterEvent('spell1_11372', 1, 1)
end
if choix_sorts_11372 == 2 then
pUnit:RegisterEvent('spell2_11372', 1, 1)
end
end

function mob11372_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11372', math.random(1500, 3000), 1)
end

function mob11372_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11372_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11372_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11372, 1, 'mob11372_Action')
RegisterUnitEvent(11372, 2, 'mob11372_Leave')
RegisterUnitEvent(11372, 3, 'mob11372_Kill')
RegisterUnitEvent(11372, 4, 'mob11372_Die')
